package com.faner.bean;


import net.sf.json.JSONObject;

public class TodayBean {
    String title;
    String content;
    String date;


    public TodayBean(String title, String date, String content) {
        this.title = title;
        this.content = content;
        this.date = date;
    }

    public JSONObject toJson() {
        JSONObject result = new JSONObject();
        result.put("code", 0);
        JSONObject json = new JSONObject();
        json.put("title", title);
        json.put("content", content);
        json.put("date", date);
        result.put("data", json);
        return result;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

}